import Request from '@/request'

export const getrepairpriceList = <T extends object, R>(
  data: T
): Promise<IResponse<IList<R>>> => {
  return Request.get('/repairprice/list', data)
}

export const updaterepairprice = <T extends object, R>(
  data: T
): Promise<IResponse<R>> => {
  return Request.post('/repairprice/update', data)
}

export const deleterepairprice = <T extends object, R>(
  data: T
): Promise<IResponse<R>> => {
  return Request.post('/repairprice/delete', data)
}

export const addrepairprice = <T extends object, R>(
  data: T
): Promise<IResponse<R>> => {
  return Request.post('/repairprice/add', data)
}
